<template>
  <div>
    <Mingriliebiao leixing="服饰穿戴" :chuan1="arra" :chuan2="arrb" />
    <Mingriliebiao leixing="服饰穿戴1" :chuan1="arrc" :chuan2="arrd" />
  </div>
</template>

<script>
import axios from "axios";
import Mingriliebiao from "../components/plms/mingriliebiao.vue";
export default {
  data() {
    return {
      liebiao: [],
    };
  },
  components: {
    Mingriliebiao,
  },
  created() {
    axios
      .get("/liebiao2", {
        params: {
          type: this.type,
        },
      })
      .then((res) => {
        this.liebiao = res.data;
      })
      .catch((err) => {
        console.log("服务器出错了", err);
        alert("服务器出错了");
      });
  },
  computed: {
    arra() {
      return this.liebiao.slice(15, 18);
    },
    arrb() {
      return this.liebiao.slice(18, 21);
    },
    arrc() {
      return this.liebiao.slice(8, 10);
    },
    arrd() {
      return this.liebiao.slice(13, 15);
    },
  },
};
</script>

<style scoped>
</style>